<template>
    <div>
        <p>我是A组件</p>
        <B>
            <template slot-scope="data">
                {{data.obj.lastName}}
            </template>
        </B>
    </div>
</template>
   
<script>
import B from './B.vue'    //引入B组件
import C from './C.vue'   //引入C组件

export default {
    name: 'A',
    components: {      //注册B组件
        B, C
    },

    data() {
        return {

        }
    }
}
</script>